<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<div class="section" style="overflow: hidden;">
   <c:choose>
    	<c:when test="${list.size()>0 }">
	    	<ul class="img-list">
		    <c:forEach items="${list}" var="goods">
		            <li>
		            <a href="${pathUrl}/home/goods/detail?id=${goods.id}" target="_blank">
		                <div class="img-box">
		                    <img onerror="this.src='${pathUrl }/public/images/nopic.png'"  src="${pathUrl }${goods.goodsImg }">
		                </div>
		                <div class="info">
								<h3>${goods.goodsName}</h3>
								<p class="price"><b>¥${goods.sellPrice}</b>元</p>
		                    <p>
		                        <strong>库存 ${goods.goodsNumber}</strong>
		                        <span>市场价：<s>${goods.marketPrice}</s></span>
		                    </p>
		                </div>
		            </a>
		        </li>
		    </c:forEach>
		    </ul>
    	</c:when>
    	<c:otherwise>
    	  暂无商品数据！
    	</c:otherwise>
   </c:choose>
 
    
</div>
<input type="hidden" id="pageNum" name="pageNum" value="${pageNum }"/>
<input type="hidden" id="pages" name="pages" value="${pages }"/>
<input type="hidden" id="total" name="total" value="${total }"/>
<input type="hidden" id="pageSize" name="pageSize" value="${pageSize }"/>